﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CabCtlLib
{
    public class Log
    {
        private static StreamWriter logWriter;
        public static void Write(string log)
        {
            if (logWriter == null)
            {
                logWriter = new StreamWriter("D:\\LOG-"+DateTime.Now.ToString("yyyy-MM-dd")+".TXT", true);
            }

            logWriter.WriteLine(DateTime.Now.ToLongTimeString() + ":"+log);
            logWriter.Flush();
        }
    }
}
